import request from '@/utils/http';

/** 组织-机构下拉 */
export const orgOptionsRequest = (data: object) => {
  // return request.post('/mock/api/login', data);
  return request.post('/common/orgOptions', data);
};

/** 枚举*/
export const getEnumListRequest = (data: object) => {
  // return request.post('/mock/api/login', data);
  return request.post('/common/getEnumList', data);
};

/** 检测点*/
export const getCheckPointsOptionsRequest = (data: object) => {
  // return request.post('/mock/api/login', data);
  return request.post('/common/checkPointsOptions', data);
};
/** 健康顾问*/
export const getHealthDoctorOptionsRequest = (data: object) => {
  // return request.post('/mock/api/login', data);
  return request.post('/common/healthDoctorOptions', data);
};
/** 角色下拉 */
export const roleOptionsRequest = (data: object) => {
  return request.post('/common/roleList', data);
};
/** 枚举接口 */
export const enumListRequest = (data: object) => {
  return request.post('/common/getEnumList', data);
};
/** 健康顾问下拉 */
export const healthDoctorOptionsRequest = (data: object) => {
  return request.post('/common/healthDoctorOptions', data);
};
/** 员工信息 */
export const infoRequest = (data: object) => {
  return request.post('/adminUser/info', data);
};

/** 权限按钮 */
export const menuListRequest = (data: object) => {
  return request.post('/common/menuList', data);
};
/** 文件上传(文件对外公开,无论谁都可以访问) */
export const uploadFileByPublicRequest = (params: object) => {
  // return request.post('/common/uploadFileByPublic', { params: data });
  return request.post('/common/uploadFileByPublic', params, {
    'Content-type': 'multipart/form-data'
  });
};
/** 民族下拉 */
export const nationOptionsRequest = (data: object) => {
  return request.post('/common/nationOptions', data);
};


/** 我方销售人员下拉 */
export const salesOptionsRequest = (data: object) => {
  return request.post('/common/salesOptions', data);
};
